import store from 'store2'

class AuthServer {
  constructor() {
    this.changeVal = store.get('changeVal');
    this.result = store.get('result');
  }
  setChangeVal(data) {
    store.set('changeVal', data);
  }
  getChangeVal() {
    return this.changeVal;
  }
  setResult(data) {
    store.set('result', data);
  }
  getResult() {
    return this.result;
  }
}

let auth = new AuthServer();
export default auth
